package com.shopping.modean;

public class Category {

	private int id;
	private int pid;
	private String name;
	private String descr;
	private boolean leaf;
	private int grade;
	private int leafSize; //叶子个数
	
	public Category() {
		
	}
	
	public Category(int id,String name,String descr) {
		this.id = id;
		this.name = name;
		this.descr = descr;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public int getGrade() {
		return grade;
	}
	public void setGrade(int grade) {
		this.grade = grade;
	}
	public int getLeafSize() {
		return leafSize;
	}
	public void setLeafSize(int leafSize) {
		this.leafSize = leafSize;
	}
	
	
	
}
